package map.android.baidu.carpool.data.impl;

import android.content.Context;
import map.android.baidu.carpool.WebConfig;
import map.android.baidu.carpool.data.CarpoolBaseData;
import map.android.baidu.carpool.response.OrderFinishResponse;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by zhangtongyu on 15/3/23.
 * main模块乘客确认上车的接口request
 */
public class OrderFinishData extends CarpoolBaseData<OrderFinishResponse>{

    public String orderId;
    public String bduss;

    public OrderFinishData(Context context) {
        super(context);
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public void setBduss(String bduss) {
        this.bduss = bduss;
    }

    @Override
    protected String getUrl() {
        return WebConfig.getUrl(WebConfig.URL_ID_ORDER_FINISH);
    }

    @Override
    protected Map<String, String> getParams() {
        Map<String , String> params = new HashMap<String, String>();
        params.put("orderId" , orderId);
        params.put("bduss" , bduss);

        return params;
    }
}
